import request from '_c/utils/request'

/**
 * 获取红包列表
 */
export function redPacketList(data) {

    return request({
        url: `/app/api/user/red/packet/list`,
        method: 'get',
        params:data
    })
}

/**
 * 系统获奖红包列表
 */
export function sysRedPacketList(data) {

    return request({
        url: `/app/api/user/red/packet/all/list`,
        method: 'get',
        params: data
    })
}



/**
 * 统计
 */
export function redPacketSum(data) {

    return request({
        url: `/app/api/user/red/packet/sum`,
        method: 'get',
        params: data
    })
}

/**
 * 领取
 */
export function redPacketGet(data) {

    return request({
        url: `/app/api/user/red/packet/get`,
        method: 'get',
        params: data
    })
}

/**
 * 可领取数量
 */
export function redPacketCount() {

    return request({
        url: `/app/api/user/red/packet/redPacketCount`,
        method: 'get',
    })
}
